/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.ofbiz.eclipse.model.webapp.SiteConf.impl;

import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EMap;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;

import org.eclipse.emf.ecore.util.BasicFeatureMap;
import org.eclipse.emf.ecore.util.EcoreEMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.InternalEList;

import org.ofbiz.eclipse.model.webapp.SiteConf.AfterLoginType;
import org.ofbiz.eclipse.model.webapp.SiteConf.BeforeLogoutType;
import org.ofbiz.eclipse.model.webapp.SiteConf.DefaultRequestType;
import org.ofbiz.eclipse.model.webapp.SiteConf.DocumentRoot;
import org.ofbiz.eclipse.model.webapp.SiteConf.EventType;
import org.ofbiz.eclipse.model.webapp.SiteConf.FirstvisitType;
import org.ofbiz.eclipse.model.webapp.SiteConf.HandlerType;
import org.ofbiz.eclipse.model.webapp.SiteConf.IncludeType;
import org.ofbiz.eclipse.model.webapp.SiteConf.PostprocessorType;
import org.ofbiz.eclipse.model.webapp.SiteConf.PreprocessorType;
import org.ofbiz.eclipse.model.webapp.SiteConf.ProtectType;
import org.ofbiz.eclipse.model.webapp.SiteConf.RedirectParameterType;
import org.ofbiz.eclipse.model.webapp.SiteConf.RequestMapType;
import org.ofbiz.eclipse.model.webapp.SiteConf.ResponseType;
import org.ofbiz.eclipse.model.webapp.SiteConf.SecurityType;
import org.ofbiz.eclipse.model.webapp.SiteConf.SiteConfPackage;
import org.ofbiz.eclipse.model.webapp.SiteConf.SiteConfType;
import org.ofbiz.eclipse.model.webapp.SiteConf.ViewMapType;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Document Root</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getAfterLogin <em>After Login</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getBeforeLogout <em>Before Logout</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getDefaultRequest <em>Default Request</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getDescription <em>Description</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getErrorpage <em>Errorpage</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getEvent <em>Event</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getFirstvisit <em>Firstvisit</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getHandler <em>Handler</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getInclude <em>Include</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getOwner <em>Owner</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getPostprocessor <em>Postprocessor</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getPreprocessor <em>Preprocessor</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getProtect <em>Protect</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getRedirectParameter <em>Redirect Parameter</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getRequestMap <em>Request Map</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getResponse <em>Response</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getSecurity <em>Security</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getSiteConf <em>Site Conf</em>}</li>
 *   <li>{@link org.ofbiz.eclipse.model.webapp.SiteConf.impl.DocumentRootImpl#getViewMap <em>View Map</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
	/**
	 * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getMixed()
	 * @generated
	 * @ordered
	 */
	protected FeatureMap mixed;

	/**
	 * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getXMLNSPrefixMap()
	 * @generated
	 * @ordered
	 */
	protected EMap<String, String> xMLNSPrefixMap;

	/**
	 * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getXSISchemaLocation()
	 * @generated
	 * @ordered
	 */
	protected EMap<String, String> xSISchemaLocation;

	/**
	 * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDescription()
	 * @generated
	 * @ordered
	 */
	protected static final String DESCRIPTION_EDEFAULT = null;

	/**
	 * The default value of the '{@link #getErrorpage() <em>Errorpage</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getErrorpage()
	 * @generated
	 * @ordered
	 */
	protected static final String ERRORPAGE_EDEFAULT = null;

	/**
	 * The default value of the '{@link #getOwner() <em>Owner</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getOwner()
	 * @generated
	 * @ordered
	 */
	protected static final String OWNER_EDEFAULT = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DocumentRootImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return SiteConfPackage.Literals.DOCUMENT_ROOT;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FeatureMap getMixed() {
		if (mixed == null) {
			mixed = new BasicFeatureMap(this, SiteConfPackage.DOCUMENT_ROOT__MIXED);
		}
		return mixed;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EMap<String, String> getXMLNSPrefixMap() {
		if (xMLNSPrefixMap == null) {
			xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, SiteConfPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
		}
		return xMLNSPrefixMap;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EMap<String, String> getXSISchemaLocation() {
		if (xSISchemaLocation == null) {
			xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, SiteConfPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
		}
		return xSISchemaLocation;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public AfterLoginType getAfterLogin() {
		return (AfterLoginType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__AFTER_LOGIN, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetAfterLogin(AfterLoginType newAfterLogin, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__AFTER_LOGIN, newAfterLogin, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setAfterLogin(AfterLoginType newAfterLogin) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__AFTER_LOGIN, newAfterLogin);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public BeforeLogoutType getBeforeLogout() {
		return (BeforeLogoutType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__BEFORE_LOGOUT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetBeforeLogout(BeforeLogoutType newBeforeLogout, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__BEFORE_LOGOUT, newBeforeLogout, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setBeforeLogout(BeforeLogoutType newBeforeLogout) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__BEFORE_LOGOUT, newBeforeLogout);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public DefaultRequestType getDefaultRequest() {
		return (DefaultRequestType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__DEFAULT_REQUEST, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetDefaultRequest(DefaultRequestType newDefaultRequest, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__DEFAULT_REQUEST, newDefaultRequest, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setDefaultRequest(DefaultRequestType newDefaultRequest) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__DEFAULT_REQUEST, newDefaultRequest);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getDescription() {
		return (String)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__DESCRIPTION, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setDescription(String newDescription) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__DESCRIPTION, newDescription);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getErrorpage() {
		return (String)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__ERRORPAGE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setErrorpage(String newErrorpage) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__ERRORPAGE, newErrorpage);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EventType getEvent() {
		return (EventType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__EVENT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetEvent(EventType newEvent, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__EVENT, newEvent, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setEvent(EventType newEvent) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__EVENT, newEvent);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FirstvisitType getFirstvisit() {
		return (FirstvisitType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__FIRSTVISIT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetFirstvisit(FirstvisitType newFirstvisit, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__FIRSTVISIT, newFirstvisit, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setFirstvisit(FirstvisitType newFirstvisit) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__FIRSTVISIT, newFirstvisit);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public HandlerType getHandler() {
		return (HandlerType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__HANDLER, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetHandler(HandlerType newHandler, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__HANDLER, newHandler, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setHandler(HandlerType newHandler) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__HANDLER, newHandler);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public IncludeType getInclude() {
		return (IncludeType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__INCLUDE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetInclude(IncludeType newInclude, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__INCLUDE, newInclude, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setInclude(IncludeType newInclude) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__INCLUDE, newInclude);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getOwner() {
		return (String)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__OWNER, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setOwner(String newOwner) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__OWNER, newOwner);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public PostprocessorType getPostprocessor() {
		return (PostprocessorType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__POSTPROCESSOR, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetPostprocessor(PostprocessorType newPostprocessor, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__POSTPROCESSOR, newPostprocessor, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setPostprocessor(PostprocessorType newPostprocessor) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__POSTPROCESSOR, newPostprocessor);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public PreprocessorType getPreprocessor() {
		return (PreprocessorType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__PREPROCESSOR, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetPreprocessor(PreprocessorType newPreprocessor, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__PREPROCESSOR, newPreprocessor, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setPreprocessor(PreprocessorType newPreprocessor) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__PREPROCESSOR, newPreprocessor);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ProtectType getProtect() {
		return (ProtectType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__PROTECT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetProtect(ProtectType newProtect, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__PROTECT, newProtect, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setProtect(ProtectType newProtect) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__PROTECT, newProtect);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public RedirectParameterType getRedirectParameter() {
		return (RedirectParameterType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__REDIRECT_PARAMETER, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetRedirectParameter(RedirectParameterType newRedirectParameter, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__REDIRECT_PARAMETER, newRedirectParameter, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setRedirectParameter(RedirectParameterType newRedirectParameter) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__REDIRECT_PARAMETER, newRedirectParameter);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public RequestMapType getRequestMap() {
		return (RequestMapType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__REQUEST_MAP, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetRequestMap(RequestMapType newRequestMap, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__REQUEST_MAP, newRequestMap, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setRequestMap(RequestMapType newRequestMap) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__REQUEST_MAP, newRequestMap);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ResponseType getResponse() {
		return (ResponseType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__RESPONSE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetResponse(ResponseType newResponse, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__RESPONSE, newResponse, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setResponse(ResponseType newResponse) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__RESPONSE, newResponse);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public SecurityType getSecurity() {
		return (SecurityType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__SECURITY, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetSecurity(SecurityType newSecurity, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__SECURITY, newSecurity, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSecurity(SecurityType newSecurity) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__SECURITY, newSecurity);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public SiteConfType getSiteConf() {
		return (SiteConfType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__SITE_CONF, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetSiteConf(SiteConfType newSiteConf, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__SITE_CONF, newSiteConf, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSiteConf(SiteConfType newSiteConf) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__SITE_CONF, newSiteConf);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ViewMapType getViewMap() {
		return (ViewMapType)getMixed().get(SiteConfPackage.Literals.DOCUMENT_ROOT__VIEW_MAP, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetViewMap(ViewMapType newViewMap, NotificationChain msgs) {
		return ((FeatureMap.Internal)getMixed()).basicAdd(SiteConfPackage.Literals.DOCUMENT_ROOT__VIEW_MAP, newViewMap, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setViewMap(ViewMapType newViewMap) {
		((FeatureMap.Internal)getMixed()).set(SiteConfPackage.Literals.DOCUMENT_ROOT__VIEW_MAP, newViewMap);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
		switch (featureID) {
			case SiteConfPackage.DOCUMENT_ROOT__MIXED:
				return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
				return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
				return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__AFTER_LOGIN:
				return basicSetAfterLogin(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__BEFORE_LOGOUT:
				return basicSetBeforeLogout(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__DEFAULT_REQUEST:
				return basicSetDefaultRequest(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__EVENT:
				return basicSetEvent(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__FIRSTVISIT:
				return basicSetFirstvisit(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__HANDLER:
				return basicSetHandler(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__INCLUDE:
				return basicSetInclude(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__POSTPROCESSOR:
				return basicSetPostprocessor(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__PREPROCESSOR:
				return basicSetPreprocessor(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__PROTECT:
				return basicSetProtect(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__REDIRECT_PARAMETER:
				return basicSetRedirectParameter(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__REQUEST_MAP:
				return basicSetRequestMap(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__RESPONSE:
				return basicSetResponse(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__SECURITY:
				return basicSetSecurity(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__SITE_CONF:
				return basicSetSiteConf(null, msgs);
			case SiteConfPackage.DOCUMENT_ROOT__VIEW_MAP:
				return basicSetViewMap(null, msgs);
		}
		return super.eInverseRemove(otherEnd, featureID, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case SiteConfPackage.DOCUMENT_ROOT__MIXED:
				if (coreType) return getMixed();
				return ((FeatureMap.Internal)getMixed()).getWrapper();
			case SiteConfPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
				if (coreType) return getXMLNSPrefixMap();
				else return getXMLNSPrefixMap().map();
			case SiteConfPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
				if (coreType) return getXSISchemaLocation();
				else return getXSISchemaLocation().map();
			case SiteConfPackage.DOCUMENT_ROOT__AFTER_LOGIN:
				return getAfterLogin();
			case SiteConfPackage.DOCUMENT_ROOT__BEFORE_LOGOUT:
				return getBeforeLogout();
			case SiteConfPackage.DOCUMENT_ROOT__DEFAULT_REQUEST:
				return getDefaultRequest();
			case SiteConfPackage.DOCUMENT_ROOT__DESCRIPTION:
				return getDescription();
			case SiteConfPackage.DOCUMENT_ROOT__ERRORPAGE:
				return getErrorpage();
			case SiteConfPackage.DOCUMENT_ROOT__EVENT:
				return getEvent();
			case SiteConfPackage.DOCUMENT_ROOT__FIRSTVISIT:
				return getFirstvisit();
			case SiteConfPackage.DOCUMENT_ROOT__HANDLER:
				return getHandler();
			case SiteConfPackage.DOCUMENT_ROOT__INCLUDE:
				return getInclude();
			case SiteConfPackage.DOCUMENT_ROOT__OWNER:
				return getOwner();
			case SiteConfPackage.DOCUMENT_ROOT__POSTPROCESSOR:
				return getPostprocessor();
			case SiteConfPackage.DOCUMENT_ROOT__PREPROCESSOR:
				return getPreprocessor();
			case SiteConfPackage.DOCUMENT_ROOT__PROTECT:
				return getProtect();
			case SiteConfPackage.DOCUMENT_ROOT__REDIRECT_PARAMETER:
				return getRedirectParameter();
			case SiteConfPackage.DOCUMENT_ROOT__REQUEST_MAP:
				return getRequestMap();
			case SiteConfPackage.DOCUMENT_ROOT__RESPONSE:
				return getResponse();
			case SiteConfPackage.DOCUMENT_ROOT__SECURITY:
				return getSecurity();
			case SiteConfPackage.DOCUMENT_ROOT__SITE_CONF:
				return getSiteConf();
			case SiteConfPackage.DOCUMENT_ROOT__VIEW_MAP:
				return getViewMap();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case SiteConfPackage.DOCUMENT_ROOT__MIXED:
				((FeatureMap.Internal)getMixed()).set(newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
				((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
				((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__AFTER_LOGIN:
				setAfterLogin((AfterLoginType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__BEFORE_LOGOUT:
				setBeforeLogout((BeforeLogoutType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__DEFAULT_REQUEST:
				setDefaultRequest((DefaultRequestType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__DESCRIPTION:
				setDescription((String)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__ERRORPAGE:
				setErrorpage((String)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__EVENT:
				setEvent((EventType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__FIRSTVISIT:
				setFirstvisit((FirstvisitType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__HANDLER:
				setHandler((HandlerType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__INCLUDE:
				setInclude((IncludeType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__OWNER:
				setOwner((String)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__POSTPROCESSOR:
				setPostprocessor((PostprocessorType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__PREPROCESSOR:
				setPreprocessor((PreprocessorType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__PROTECT:
				setProtect((ProtectType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__REDIRECT_PARAMETER:
				setRedirectParameter((RedirectParameterType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__REQUEST_MAP:
				setRequestMap((RequestMapType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__RESPONSE:
				setResponse((ResponseType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__SECURITY:
				setSecurity((SecurityType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__SITE_CONF:
				setSiteConf((SiteConfType)newValue);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__VIEW_MAP:
				setViewMap((ViewMapType)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case SiteConfPackage.DOCUMENT_ROOT__MIXED:
				getMixed().clear();
				return;
			case SiteConfPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
				getXMLNSPrefixMap().clear();
				return;
			case SiteConfPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
				getXSISchemaLocation().clear();
				return;
			case SiteConfPackage.DOCUMENT_ROOT__AFTER_LOGIN:
				setAfterLogin((AfterLoginType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__BEFORE_LOGOUT:
				setBeforeLogout((BeforeLogoutType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__DEFAULT_REQUEST:
				setDefaultRequest((DefaultRequestType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__DESCRIPTION:
				setDescription(DESCRIPTION_EDEFAULT);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__ERRORPAGE:
				setErrorpage(ERRORPAGE_EDEFAULT);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__EVENT:
				setEvent((EventType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__FIRSTVISIT:
				setFirstvisit((FirstvisitType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__HANDLER:
				setHandler((HandlerType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__INCLUDE:
				setInclude((IncludeType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__OWNER:
				setOwner(OWNER_EDEFAULT);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__POSTPROCESSOR:
				setPostprocessor((PostprocessorType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__PREPROCESSOR:
				setPreprocessor((PreprocessorType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__PROTECT:
				setProtect((ProtectType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__REDIRECT_PARAMETER:
				setRedirectParameter((RedirectParameterType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__REQUEST_MAP:
				setRequestMap((RequestMapType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__RESPONSE:
				setResponse((ResponseType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__SECURITY:
				setSecurity((SecurityType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__SITE_CONF:
				setSiteConf((SiteConfType)null);
				return;
			case SiteConfPackage.DOCUMENT_ROOT__VIEW_MAP:
				setViewMap((ViewMapType)null);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case SiteConfPackage.DOCUMENT_ROOT__MIXED:
				return mixed != null && !mixed.isEmpty();
			case SiteConfPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
				return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
			case SiteConfPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
				return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
			case SiteConfPackage.DOCUMENT_ROOT__AFTER_LOGIN:
				return getAfterLogin() != null;
			case SiteConfPackage.DOCUMENT_ROOT__BEFORE_LOGOUT:
				return getBeforeLogout() != null;
			case SiteConfPackage.DOCUMENT_ROOT__DEFAULT_REQUEST:
				return getDefaultRequest() != null;
			case SiteConfPackage.DOCUMENT_ROOT__DESCRIPTION:
				return DESCRIPTION_EDEFAULT == null ? getDescription() != null : !DESCRIPTION_EDEFAULT.equals(getDescription());
			case SiteConfPackage.DOCUMENT_ROOT__ERRORPAGE:
				return ERRORPAGE_EDEFAULT == null ? getErrorpage() != null : !ERRORPAGE_EDEFAULT.equals(getErrorpage());
			case SiteConfPackage.DOCUMENT_ROOT__EVENT:
				return getEvent() != null;
			case SiteConfPackage.DOCUMENT_ROOT__FIRSTVISIT:
				return getFirstvisit() != null;
			case SiteConfPackage.DOCUMENT_ROOT__HANDLER:
				return getHandler() != null;
			case SiteConfPackage.DOCUMENT_ROOT__INCLUDE:
				return getInclude() != null;
			case SiteConfPackage.DOCUMENT_ROOT__OWNER:
				return OWNER_EDEFAULT == null ? getOwner() != null : !OWNER_EDEFAULT.equals(getOwner());
			case SiteConfPackage.DOCUMENT_ROOT__POSTPROCESSOR:
				return getPostprocessor() != null;
			case SiteConfPackage.DOCUMENT_ROOT__PREPROCESSOR:
				return getPreprocessor() != null;
			case SiteConfPackage.DOCUMENT_ROOT__PROTECT:
				return getProtect() != null;
			case SiteConfPackage.DOCUMENT_ROOT__REDIRECT_PARAMETER:
				return getRedirectParameter() != null;
			case SiteConfPackage.DOCUMENT_ROOT__REQUEST_MAP:
				return getRequestMap() != null;
			case SiteConfPackage.DOCUMENT_ROOT__RESPONSE:
				return getResponse() != null;
			case SiteConfPackage.DOCUMENT_ROOT__SECURITY:
				return getSecurity() != null;
			case SiteConfPackage.DOCUMENT_ROOT__SITE_CONF:
				return getSiteConf() != null;
			case SiteConfPackage.DOCUMENT_ROOT__VIEW_MAP:
				return getViewMap() != null;
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (mixed: ");
		result.append(mixed);
		result.append(')');
		return result.toString();
	}

} //DocumentRootImpl
